package com.cq.teacher.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cq.teacher.mapper.TeacherTypeMapper;
import com.cq.teacher.domain.TeacherType;
import com.cq.teacher.service.ITeacherTypeService;

/**
 * 老师类型Service业务层处理
 * 
 * @author cq
 * @date 2024-01-06
 */
@Service
public class TeacherTypeServiceImpl implements ITeacherTypeService 
{
    @Autowired
    private TeacherTypeMapper teacherTypeMapper;

    /**
     * 查询老师类型
     * 
     * @param id 老师类型主键
     * @return 老师类型
     */
    @Override
    public TeacherType selectTeacherTypeById(Long id)
    {
        return teacherTypeMapper.selectTeacherTypeById(id);
    }

    /**
     * 查询老师类型列表
     * 
     * @param teacherType 老师类型
     * @return 老师类型
     */
    @Override
    public List<TeacherType> selectTeacherTypeList(TeacherType teacherType)
    {
        return teacherTypeMapper.selectTeacherTypeList(teacherType);
    }

    /**
     * 新增老师类型
     * 
     * @param teacherType 老师类型
     * @return 结果
     */
    @Override
    public int insertTeacherType(TeacherType teacherType)
    {
        return teacherTypeMapper.insertTeacherType(teacherType);
    }

    /**
     * 修改老师类型
     * 
     * @param teacherType 老师类型
     * @return 结果
     */
    @Override
    public int updateTeacherType(TeacherType teacherType)
    {
        return teacherTypeMapper.updateTeacherType(teacherType);
    }

    /**
     * 批量删除老师类型
     * 
     * @param ids 需要删除的老师类型主键
     * @return 结果
     */
    @Override
    public int deleteTeacherTypeByIds(Long[] ids)
    {
        return teacherTypeMapper.deleteTeacherTypeByIds(ids);
    }

    /**
     * 删除老师类型信息
     * 
     * @param id 老师类型主键
     * @return 结果
     */
    @Override
    public int deleteTeacherTypeById(Long id)
    {
        return teacherTypeMapper.deleteTeacherTypeById(id);
    }
}
